import React, { FC, useState, useEffect } from 'react';
import './style.scss'

interface DialogProps {
  onClick?: () => void
}

const Dialog:FC<DialogProps> = (props) => {
  const { onClick } = props;
  return (
      <div className="dialog-wrapper">
        <div className="dialog-mask"></div>
        <div className="dialog-content">
          <div className="logo"> </div>
          <div className="title"> 链家App </div>
          <div className="sub"> 查看更多上海6月新上房源 </div>
          <div className="download-btn"> 立即下载 </div>
        </div>
        <div className="dialog-close" onClick={onClick}>X</div>
      </div>
    )
}

export default Dialog;
